package com.niit.entity;

import java.util.Date;

public class Users {
    private Integer userId;
    private String phoneNum;
    private String password;
    private Integer gender;
    private Date birthday;
    private Date createTime;
    private Integer role;

    public Users() {
    }

    public Users(Integer userId, String phoneNum, String password, Integer gender, Date birthday, Date createTime, Integer role) {
        this.userId = userId;
        this.phoneNum = phoneNum;
        this.password = password;
        this.gender = gender;
        this.birthday = birthday;
        this.createTime = createTime;
        this.role = role;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    @Override
    public String toString() {
        return
                userId +
                "\t" + phoneNum +"\t" + password + "\t" + gender +
                "\t" + birthday +
                "\t" + createTime +
                "\t" + role;
    }
}
